package Class;

public class Student {
    private String name;
    private int age;

    // 公共的无参构造方法
    public Student() {
    }

    // 私有的有参构造方法
    private Student(String name) {
        this.name = name;
    }

    // 公共的有参构造方法
    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
